package anim;

public abstract class Frame implements Comparable<Frame> {
	protected int time = 0;
	
	public abstract void doFrame();
	public abstract void undoFrame();
	
	public int getTime() { return time; }
	public void setTime(int t) { time = t; }
	
	@Override
	public int compareTo(Frame o) {
		return time - o.time;
	}
	
	public String toString()
	{
		return "[Frame @ " + time + "]";
	}
}
